package cn.chiship.bs.api.biz.pojo.dto;

import cn.chiship.sdk.core.base.constants.BaseTipConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author lj
 * 用户表单
 */
@ApiModel(description = "用户表单")
public class UpmsUserDto {
    @ApiModelProperty(value = "用户头像", required = true)
    @NotNull(message = "用户头像" + BaseTipConstants.NOT_EMPTY)
    private String avatar;

    @ApiModelProperty(value = "用户名", required = true)
    @NotNull(message = "用户名" + BaseTipConstants.NOT_EMPTY)
    @Length(min = 1, max = 20, message = "用户名" + BaseTipConstants.LENGTH_MIN_MAX)
    private String userName;

    @ApiModelProperty(value = "真实姓名", required = true)
    @NotNull(message = "真实姓名" + BaseTipConstants.NOT_EMPTY)
    @Length(min = 2, max = 5, message = "真实姓名" + BaseTipConstants.LENGTH_MIN_MAX)
    private String realName;

    @ApiModelProperty(value = "手机号", required = true)
    @NotNull(message = "手机号" + BaseTipConstants.NOT_EMPTY)
    @Length(min = 11, max = 11, message = "手机号" + BaseTipConstants.LENGTH_MIN_MAX)
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "性别", required = true)
    @NotNull(message = "性别" + BaseTipConstants.NOT_EMPTY)
    @Min(value = 1)
    @Max(value = 2)
    private Byte gender;

    @ApiModelProperty(value = "所属角色", required = true)
    @NotNull(message = "所属角色" + BaseTipConstants.NOT_EMPTY)
    @Length(min = 1, max = 100, message = "所属角色" + BaseTipConstants.LENGTH_MIN_MAX)
    private String roleId;

    @ApiModelProperty(value = "证件号")
    private String idNumber;

    @ApiModelProperty(value = "微信")
    private String weixin;

    @ApiModelProperty(value = "用户描述")
    private String remarks;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Byte getGender() {
        return gender;
    }

    public void setGender(Byte gender) {
        this.gender = gender;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
